<?php
define('DS', DIRECTORY_SEPARATOR);
define('SCRIPTS', dirname(__FILE__) . DS);
define('ROOT', (dirname(SCRIPTS)) . DS);

//fwrite(STDOUT, ROOT);

// Correct English grammar...
$plural = $argc > 1 ? 's' : '';

// Display the number of arguments received
fwrite(STDOUT,"Got $argc argument$plural\n");

// Write out the contents of the $argv array
foreach ( $argv as $key => $value ) {
   fwrite(STDOUT,"$key => $value\n");
}

if ($argv[1] == 'db') {
	require_once SCRIPTS . 'generator'.DS.'generate_db.php';
	
}
?>